package com.baizhi.cmfzmanager.controller;


import com.baizhi.cmfzmanager.entity.Menu;
import com.baizhi.cmfzmanager.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class MenuContrller {
    @Autowired
    private MenuService menuService;

    @RequestMapping("/getMenus")
    public List<Menu> getMenus(){
        return menuService.getMenus();
    }
}
